import type { VbenFormSchema } from '#/adapter/form'
import { countriesOptions } from '#/config/options/system'
import { $t } from '@vben/locales'

export function getAddEditFormSchema() {
    return [
        {
            fieldName: 'nameEn',
            label: $t('common.nameEn'),
            defaultValue: '',
            component: 'Input',
            rules: 'required'
        },
        {
            fieldName: 'nameZh',
            label: $t('common.nameZh'),
            defaultValue: '',
            component: 'Input',
            rules: 'required'
        },
        {
            fieldName: 'countriesId',
            label: $t('page.system.children.site.children.form.countries'),
            component: 'Select',
            defaultValue: $t('page.system.children.site.children.defaultValue'),
            rules: 'required',
            componentProps: {
                class: 'w-full',
                options: countriesOptions
            }
        }
    ] as VbenFormSchema[]
}
